Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:fix add image_file_name column on attendees table #180

Merged
merged 3 commits into from
Jul 6, 2024

Conversation

KannoStanfoot
Copy link
Contributor

@KannoStanfoot KannoStanfoot commented Jul 6, 2024

@KannoStanfoot KannoStanfoot requested a review from jiyuujin July 6, 2024 02:33
@KannoStanfoot KannoStanfoot self-assigned this Jul 6, 2024
Copy link

netlify bot commented Jul 6, 2024

Deploy Preview for vuefes-2024 ready!

Name Link
🔨 Latest commit 36560a9
🔍 Latest deploy log https://app.netlify.com/sites/vuefes-2024/deploys/6688b5404021f6000876c933
😎 Deploy Preview https://deploy-preview-180--vuefes-2024.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -88,6 +88,8 @@ create table if not exists public.attendees (
updated_at timestamp with time zone default timezone('utc' :: text, now()) not null
);

ALTER TABLE public.attendees ADD COLUMN image_file_name varchar(100) not null unique;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ASK

UUID が入る想定で問題無いですよね

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jiyuujin
確かにそうですね。
以下のような形で、uuidを生成する形で問題ないでしょうか?

ALTER TABLE public.attendees ADD COLUMN image_file_name uuid not null unique default uuid_generate_v4();

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上記内容で修正した内容をpushしています。

ファイルダウンロード時に、${image_file_name}.jpg のような形になると思いますので
ファイル名はユニークであれば適当に生成しちゃって良いと理解しました。間違っていたらすいません。

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

良いと思います、ユニークにしていただいていれば画像を特定できるはずですので問題無いかと

Copy link
Collaborator

@jiyuujin jiyuujin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KannoStanfoot
Copy link
Contributor Author

ご確認ありがとうございます。
テーブルの反映作業進めます。

@KannoStanfoot
Copy link
Contributor Author

supabase に反映しました。
vuefes-2024___vuejs-jp-2024___Supabase

@KannoStanfoot
Copy link
Contributor Author

@jiyuujin
テーブル更新、型定義ファイルの更新が完了しました。

@KannoStanfoot KannoStanfoot merged commit 6de0d56 into main Jul 6, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants